package com.woniu.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 医疗设备
 * @TableName equipment
 */
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class Equipment implements Serializable {
    /**
     * 
     */
    private Integer id;

    /**
     * 设备名称
     */
    private String equipName;

    /**
     * 设备编号
     */
    private String equipCode;

    /**
     * 型号
     */
    private String model;

    /**
     * 设备数量
     */
    private Integer equipCount;

    /**
     * 所属科室ID
     */
    private Integer medicalRoomId;

    /**
     * 采购价格
     */
    private BigDecimal price;

    /**
     * 采购日期
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date purchaseDate;

    /**
     * 1正常 0报废
     */
    private Integer status;

    /**
     * 
     */
    private Integer isDeleted;

    /**
     * 备用
     */
    private String var;
    private static final long serialVersionUID = 1L;



    private String roomName;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date lastMaintenanceDate;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date nextMaintenanceDate;
    private Integer maintenanceStatus;

}